package com.lin.baby.boot.chapter4.service.impl;

import com.lin.baby.boot.chapter4.service.AsyncTaskService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * Class Desc
 *
 * @author WangYang
 * @version 1.0
 * @datetime 2016/10/14 10:27
 */
@Service("cnAsyncTaskService")
public class CnAsyncTaskServiceImpl implements AsyncTaskService {

    @Async
    @Override
    public void execute(Integer mark) {
        System.out.println(CnAsyncTaskServiceImpl.class.getName() + " 执行异步任务：" + mark);
    }
}
